package com.czp.mall.bus.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RefreshScope
public class OrderController {

	@Value("${profile}")
	private String profile;
	
	@GetMapping(value = "/profile",produces = {"application/json;charset=UTF-8"})
	public String getProfile() {
		return profile;
	}
	
}
